<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package popper
 */

?>

	</div><!-- #content -->

	<footer id="colophon" class="site-footer" role="contentinfo">


    <?php get_sidebar('footer'); ?>
  

    <?php if ( has_nav_menu( 'rodape' ) ) : ?>
      <nav id="footer-navigation" class="footer-navigation clear" role="navigation">

      <div class="the-footer-menu centered">
        <!-- depth - https://developer.wordpress.org/reference/functions/wp_nav_menu/ -->
        <?php wp_nav_menu( array( 
          'theme_location'  => 'rodape', 
          'menu_id'         => 'rodape-menu',
          'depth'           => 1 // mostra somente o menu no topo, os submenus nao mostra
          ) ); ?>   
      </div>
        
			</nav><!-- #footer-navigation -->
		<?php endif; ?>



		<div class="site-info">
			<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'popper' ) ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'popper' ), 'WordPress' ); ?></a>
			<span class="sep"> | </span>
			<?php printf( esc_html__( 'Theme: %1$s', 'popper' ), '<a href="https://wordpress.org/themes/popper/" target="_none"	rel="nofollow">Popper</a>' ); ?>
		</div><!-- .site-info -->
	</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>